#! /bin/bash

cd $SYSCPAR_ROOT/tests/calc
make clean all

vers='basic v1 v1ns'
nts=`seq 5`
logflops=23
for v in `echo $vers`
do
	log=calc_$v.log
	for logmodules in {1..5}
	do
		nmodules=$((2**$logmodules))
		for nt in `echo $nts`
		do	
			echo -n "[logflops=$logflops,nmodules=$nmodules,nt=$nt] " >> $log
			env VERBOSE=1 NT=$nt OUT=$log ./calc_$v $nmodules $logflops m
		done
		echo -e '\n' >> $log
	done
done

			
	
